_Pragma("once")

#include "pch.hpp"

namespace sdl_engine {

class CmdLinePaser final {
public:
    CmdLinePaser(int argc, char** argv);

    std::string_view Get(const std::string& key) const;
    bool Has(const std::string& key) const;

private:
    std::unordered_map<std::string, std::string> params_;

    void parse(char* block);
    void put(const std::string& key, const std::string& value);
    std::string getRemainStr(const char* str);
};

};
